<?php
namespace Admin\Model;
use Think\Model;

//部门信息表
class DepModel extends Model {
	public function getNameById($_id){
		$re		=		$this->field("name")
						->where("id = '{$_id}'")
						->find();
		return $re['name'];
	}
}